//
//  C6OrderEntry.m
//  精通Objective-C
//
//  Created by 花强 on 2017/11/17.
//  Copyright © 2017年 花强. All rights reserved.
//

#import "C6OrderEntry.h"

@implementation C6OrderEntry

-(id)initWithId:(NSString *)oid name:(NSString *)order{
    if (self = [super init]) {
        NSLog(@"Initial orderEntry object with ID %@",oid);

        _orderId = oid;
        shippingAddress = [[C6Address alloc] init];
        _item = [[C6OrderItem alloc]initWithName:order];
    }
    return self;
}
-(void)dealloc{
    NSLog(@"Dealloc orderEntry object with ID %@",self.orderId);
}
@end
